#include <stdio.h>
#include "stack.h"

int main()
{
	stack_t m_stack;
	init_stack(&m_stack,sizeof(int));
	int i = 0;
	for(i= 0;i< STACK_MAX_COUNT;i++)
	{
		push_stack(&m_stack,(void *)&i);
	}
	int temp;
	for(i= 0;i< STACK_MAX_COUNT;i++)
	{
		pop_stack(&m_stack,(void *)&temp);
		printf("%d ",temp);
	}
	free_stack(&m_stack);
	return 0;
}
